<?php $arr_estado = array(1 => 'Activo', 2 => 'Inactivo'); ?>
<header>
    <div class="title">
        <a href="">Plan de estudio</a><span> > </span><strong>Ver plan</strong>
    </div>
    <div class="shortcuts">
        <a href=""></a>
    </div>
    <div class="help">
        <a href="">Ayuda</a>
    </div>
</header>
<div class="sidebar">
    <div id="plan-delete" class="content">
        <h3>Ver Plan</h3>
        <?php if (!empty($validacion)) { ?><h4 style='color:red;'><?php echo $validacion; ?></h4><?php } ?>
        <form id="plan-delete-form" action="#" method="post" enctype="multipart/form-data">
            <input name="form-action" type="hidden" value="delete-plan" />
            <div class="form">
                <label>
                    <span class="name">Nombre:</span>
                    <input type="text" readonly id="plan-delete-form-nombre" name="nombre" value="<?php if ($plan->get('planes','nombre')) echo html_entity_decode($plan->get('planes','nombre')); ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Descripcion:</span>
                    <textarea disabled name='descripcion'><?php if ($plan->get('planes','descripcion')) echo html_entity_decode($plan->get('planes','descripcion')); ?></textarea>
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Estado:</span>
                    <input readonly type="text" id="plan-delete-form-estado" name="estado" value="<?php if ($plan->get('planes','estado')) echo $arr_estado[html_entity_decode($plan->get('planes','estado'))]; ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
            </div>
            <a class="button" href="javascript:document.getElementById('plan-delete-form').submit();">Eliminar</a>
            <a class="button" href="<?php echo $host . 'plans/'; ?>">Cancelar</a>
        </form>
    </div>
</div>